// Kony

#pragma once

#include "CoreMinimal.h"
#include "GameplayTagContainer.h"
#include "NiagaraComponent.h"
#include "DebuffNiagaraComponent.generated.h"

/**
 * Debuff 异常效果 Niagara 粒子效果组件
 */
UCLASS()
class GASC_HUANLING_API UDebuffNiagaraComponent : public UNiagaraComponent
{
	GENERATED_BODY()
public:
	UDebuffNiagaraComponent();
	//异常标签
	UPROPERTY(VisibleAnywhere)
	FGameplayTag DebuffTag;

protected:
	virtual void BeginPlay() override;
	//异常标签改变
	void DebuffTagChanged(const FGameplayTag CallbackTag, int32 NewCount);
	//处理角色死亡函数
	UFUNCTION()
	void OnOwnerDeath(AActor* DeadActor);
};
